import java.util.Scanner;
public class Test {
    public static void main6(String[] args){
        int account=123456;
        int password=111;
        int count=3;
        Scanner sc=new Scanner(System.in);
        while(count!=0){
            System.out.println("请输入账号");
            int a=sc.nextInt();
            System.out.println("请输入密码");
            int b=sc.nextInt();
            if(a!=account||b!=password){
                System.out.println("输入错误，请重新输入");
            }
            else {
                System.out.println("登陆成功!");
                break;
            }
            count--;
        }
    }
    public static void main5(String[] args){
        for(int i=100;i<=999;i++){
            int a=i%10;
            int b=i/10%10;
            int c=i/100;
            if(Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3)==i){
                System.out.println(i);
            }
        }
    }
    public static void main4(String[] args){
        int a=1;
        double sum=0;
        for(int i=1;i<=100;i++){
            sum+=1.0/i*a;
            a=-a;
        }
        System.out.println(sum);
    }

    public static void main3(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入两个正整数");
        int a=sc.nextInt();
        int b=sc.nextInt();
        while(b!=0){
            int c=b;
            b=a%b;
            a=c;
        }
        System.out.println(a);
    }


    public static void main2(String[] args){
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        for(int i=1;i<=n;i++){
            for(int j=1;j<=i;j++){
                System.out.print(j+"*"+i+"="+j*i+" ");
            }
            System.out.println();
        }
    }


    public static void main1(String[] args){
        Scanner sc=new Scanner(System.in);
        int age=sc.nextInt();
        if(age<=18){
            System.out.println("少年");
        }
        else if(age>=19&&age<=28){
            System.out.println("青年");
        }
        else if(age>=29&&age<=55){
            System.out.println("中年");
        }
        else {
            System.out.println("中年");
        }
    }
}